Cypress Semiconductor /psoc63 /GPIO /PRT[0] /CFG

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CFG

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (HIGHZ)DRIVE_MODE0 0 (IN_EN0)IN_EN0 0DRIVE_MODE1 0 (IN_EN1)IN_EN1 0DRIVE_MODE2 0 (IN_EN2)IN_EN2 0DRIVE_MODE3 0 (IN_EN3)IN_EN3 0DRIVE_MODE4 0 (IN_EN4)IN_EN4 0DRIVE_MODE5 0 (IN_EN5)IN_EN5 0DRIVE_MODE6 0 (IN_EN6)IN_EN6 0DRIVE_MODE7 0 (IN_EN7)IN_EN7

DRIVE_MODE0=HIGHZ

Description

Port configuration register

Fields

DRIVE_MODE0

The GPIO drive mode for IO pin 0. Resistive pull-up and pull-down is selected in the drive mode. Note: when initializing IO’s that are connected to a live bus (such as I2C), make sure the peripheral and HSIOM (HSIOM_PRT_SELx) is properly configured before turning the IO on here to avoid producing glitches on the bus. Note: that peripherals other than GPIO & UDB/DSI directly control both the output and output-enable of the output buffer (peripherals can drive strong 0 or strong 1 in any mode except OFF=‘0’). Note: D_OUT, D_OUT_EN are pins of GPIO cell.

0 (HIGHZ): Output buffer is off creating a high impedance input D_OUT = ‘0’: High Impedance D_OUT = ‘1’: High Impedance

1 (RSVD): N/A

2 (PULLUP): Resistive pull up

For GPIO & UDB/DSI peripherals: When D_OUT_EN = 1: D_OUT = ‘0’: Strong pull down D_OUT = ‘1’: Weak/resistive pull up When D_OUT_EN = 0: D_OUT = ‘0’: High impedance D_OUT = ‘1’: High impedance

For peripherals other than GPIO & UDB/DSI: When D_OUT_EN = 1: D_OUT = ‘0’: Strong pull down D_OUT = ‘1’: Strong pull up When D_OUT_EN = 0: D_OUT = ‘0’: Weak/resistive pull up D_OUT = ‘1’: Weak/resistive pull up

3 (PULLDOWN): Resistive pull down

For GPIO & UDB/DSI peripherals: When D_OUT_EN = 1: D_OUT = ‘0’: Weak/resistive pull down D_OUT = ‘1’: Strong pull up When D_OUT_EN = 0: D_OUT = ‘0’: High impedance D_OUT = ‘1’: High impedance

For peripherals other than GPIO & UDB/DSI: When D_OUT_EN = 1: D_OUT = ‘0’: Strong pull down D_OUT = ‘1’: Strong pull up When D_OUT_EN = 0: D_OUT = ‘0’: Weak/resistive pull down D_OUT = ‘1’: Weak/resistive pull down

4 (OD_DRIVESLOW): Open drain, drives low

For GPIO & UDB/DSI peripherals: When D_OUT_EN = 1: D_OUT = ‘0’: Strong pull down D_OUT = ‘1’: High Impedance When D_OUT_EN = 0: D_OUT = ‘0’: High impedance D_OUT = ‘1’: High impedance

For peripherals other than GPIO & UDB/DSI: When D_OUT_EN = 1: D_OUT = ‘0’: Strong pull down D_OUT = ‘1’: Strong pull up When D_OUT_EN = 0: D_OUT = ‘0’: High Impedance D_OUT = ‘1’: High Impedance

5 (OD_DRIVESHIGH): Open drain, drives high

For GPIO & UDB/DSI peripherals: When D_OUT_EN = 1: D_OUT = ‘0’: High Impedance D_OUT = ‘1’: Strong pull up When D_OUT_EN = 0: D_OUT = ‘0’: High impedance D_OUT = ‘1’: High impedance

For peripherals other than GPIO & UDB/DSI: When D_OUT_EN = 1: D_OUT = ‘0’: Strong pull down D_OUT = ‘1’: Strong pull up When D_OUT_EN = 0: D_OUT = ‘0’: High Impedance D_OUT = ‘1’: High Impedance

6 (STRONG): Strong D_OUTput buffer

For GPIO & UDB/DSI peripherals: When D_OUT_EN = 1: D_OUT = ‘0’: Strong pull down D_OUT = ‘1’: Strong pull up When D_OUT_EN = 0: D_OUT = ‘0’: High impedance D_OUT = ‘1’: High impedance

For peripherals other than GPIO & UDB/DSI: When D_OUT_EN = 1: D_OUT = ‘0’: Strong pull down D_OUT = ‘1’: Strong pull up When D_OUT_EN = 0: D_OUT = ‘0’: High Impedance D_OUT = ‘1’: High Impedance

7 (PULLUP_DOWN): Pull up or pull down

For GPIO & UDB/DSI peripherals: When D_OUT_EN = ‘0’: GPIO_DSI_OUT = ‘0’: Weak/resistive pull down GPIO_DSI_OUT = ‘1’: Weak/resistive pull up where ‘GPIO_DSI_OUT’ is a function of PORT_SEL, OUT & DSI_DATA_OUT.

For peripherals other than GPIO & UDB/DSI: When D_OUT_EN = 1: D_OUT = ‘0’: Strong pull down D_OUT = ‘1’: Strong pull up When D_OUT_EN = 0: D_OUT = ‘0’: Weak/resistive pull down D_OUT = ‘1’: Weak/resistive pull up

IN_EN0

Enables the input buffer for IO pin 0. This bit should be cleared when analog signals are present on the pin to avoid crowbar currents. The output buffer can be used to drive analog signals high or low without issue. ‘0’: Input buffer disabled ‘1’: Input buffer enabled

DRIVE_MODE1

The GPIO drive mode for IO pin 1

IN_EN1

Enables the input buffer for IO pin 1

DRIVE_MODE2

The GPIO drive mode for IO pin 2

IN_EN2

Enables the input buffer for IO pin 2

DRIVE_MODE3

The GPIO drive mode for IO pin 3

IN_EN3

Enables the input buffer for IO pin 3

DRIVE_MODE4

The GPIO drive mode for IO pin4

IN_EN4

Enables the input buffer for IO pin 4

DRIVE_MODE5

The GPIO drive mode for IO pin 5

IN_EN5

Enables the input buffer for IO pin 5

DRIVE_MODE6

The GPIO drive mode for IO pin 6

IN_EN6

Enables the input buffer for IO pin 6

DRIVE_MODE7

The GPIO drive mode for IO pin 7

IN_EN7

Enables the input buffer for IO pin 7

Links

() ()